package priv.project.pojo;/**
 * @author： li
 * @date： 2023-02-14 15:59
 * @version 1.0
 */

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

/**
 * @author： ljm
 * @date： 2023-02-14 15:59
 * @version 1.0
 */
@TableName("t_area")
public class Area {
    private int id;
    private int provinceId;
    private String areaName;
    private Date createDate;
    private String isParent;

    public Area() {
    }

    public Area(int id, int provinceId, String areaName, Date createDate, String isParent) {
        this.id = id;
        this.provinceId = provinceId;
        this.areaName = areaName;
        this.createDate = createDate;
        this.isParent = isParent;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(int provinceId) {
        this.provinceId = provinceId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getIsParent() {
        return isParent;
    }

    public void setIsParent(String isParent) {
        this.isParent = isParent;
    }

    @TableField(exist = false)

    String provinceName;

    public void setProvinceName(String areaName) {
        this.provinceName=areaName;
    }

    public String getProvinceName() {
        return provinceName;
    }

    @Override
    public String toString() {
        return "Area{" +
                "id=" + id +
                ", provinceId=" + provinceId +
                ", areaName='" + areaName + '\'' +
                ", createDate=" + createDate +
                ", isParent='" + isParent + '\'' +
                ", provinceName=" + provinceName +
                '}';
    }


}
